<template>
	<view>
		<view style="height: 50rpx;"></view>
		<view class="bg-white contace-top mmarg">
			<view class="contace-top-item ft32">联系我们</view>
			<view class="detail-main" style="">
				<!-- #ifdef H5 -->
				<ul>
					<li class="ft28">公司名称：{{data.title}}</li>
					<li class="ft28">客服热线：{{data.mobile}}</li>
				</ul>
				<!-- #endif -->
				<!-- #ifndef H5 -->
					<view class="flex alcenter ft28"><text class="sep">·</text> 公司名称：{{data.title}}</view>
					<view class="flex alcenter ft28"><text class="sep">·</text> 客服热线：{{data.mobile}}</view>
				<!-- #endif -->
			</view>

			<view class="hyou">
			    <view class="hyou-left" hover-class="itemActive" @click="$combination()">
			        <!-- <image src="/static/invitation2@2x.png" class="invitation2"></image> -->
			        <view class="invitation2">
			            
			        </view>
			        <view class="text" >
			         在线客服咨询   
			        </view>
			    </view>
			    <view class="hyou-left" hover-class="itemActive1" @click="openWx()">
			        <view class="invitation3">
			            
			        </view>
			          <!--  <image src="/static/invitation3@2x.png" class="invitation2"></image> -->
			        <view class="text">
			         在线微信咨询   
			        </view>
			    </view>
			</view>
		</view>
		<uni-popup
			  ref="qykefu" 
			>
			<view class="pop-center-main">
				<view class="pop-top-title">
					<view class="title">客服微信</view>
					<image src="@/static/qw@2x.png" @click="$refs.qykefu.close()"></image>
				</view>
				<view class="text-center  mt32-mb48">
					<image :src='data.image?data.image.file_path:"../../static/logo/logo.png"'  show-menu-by-longpress class='pop-serive-img'></image>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	import * as userApi from '@/api/user'
	export default {
		data() {
			return {
				data: {
					mail: "",
					title: "沈阳趣优优科技有限公司",
					wxApp: "",
					wxAttract: "",
					wxServer: "",
					mobile:'4000-242-456',
					qq:"5331112"
				}
			}
		},
		onLoad() {

		},
		onShow() {
			this.getContactUs();
		},
		methods: {
			openWx(){
				this.$refs.qykefu.open('center')
			},
			mobile(phone){
				uni.makePhoneCall({
					phoneNumber:phone,
					success: (res) => {
						
					}
				})
			},
			getContactUs() {
				let _this = this;
				userApi.connection({
						wxapp_id: _this.$wxapp_id,
					})
					.then(result => {
						_this.data = result.data;
					})
					.finally(() => this.isLoading = false)
			},
		}
	}
</script>

<style lang="less">

	page{
		background: #F2F7FA;
	}
	.contace-top-main{
		padding: 20rpx 20rpx;
		text-indent: 60rpx;
		word-wrap: break-word;
		max-width: 100%;
		color: #666666;
		padding-top: 10rpx;
	}
	.detail-main{
		margin-left: -30rpx;
		margin-top: 30rpx;
		color: #666;
		margin-bottom: 30rpx;
		
	}
	.detail-main li{
		padding-top: 10rpx;
	}

	.refer{
		line-height: 20rpx;
		padding: 29rpx;
		width: 85%;
		margin-left: 8%;
		margin-top: 30rpx;
	}
	.mmarg{
		padding-top: 50rpx;
		padding-bottom: 40rpx;
	}
	.wem_top{
		font-size: 35rpx;
		margin-top: 30rpx;
		color: #3d3d3d;
		view{
			text-align: left;
		}
	}
	.kf_ma{
		height: 300rpx;
		width: 300rpx;
		margin-top: 30rpx;
	}
	.wem_bottem{
		border-top: 5rpx solid #F1F1F1;
		margin-top: 40rpx;
		margin-bottom: -30rpx;
	}
	.wem_closes{
		border-right: 5rpx solid #F1F1F1;
		padding-right: 100rpx;
		margin-top: 20rpx;
		view{
			margin-left: 80rpx;
		}
	}
	.wem_yes{
		margin-top: 20rpx;
		view{
			margin-left: 80rpx;
		}
	}
	.sep{
		font-size: 60rpx;
		margin: 0 20rpx 0 50rpx;
	}
	.contace-top {
		display: block;
		overflow: hidden;
		background-color: #fff;
		// border-radius: 14rpx;
		box-shadow: 0 0 1px rgba(86,127,165,.03);
		padding: 10rpx 20rpx;
		padding-bottom: 40rpx;
	}
	.contace-top-item {
		padding: 20rpx;
		border-bottom: 1rpx solid #eee;
	}
	.borderrad50{
		border-radius: 50rpx;
	}
	.refer{
		line-height: 20rpx;
		height: 20rpx;
		width: 85%;
		margin: 0 auto;
		margin-top: 30rpx;
	}
	.refer-green{
		background: linear-gradient(to right, #42ec6e 0%, #20d071 100%);
		box-shadow: 0 3rpx 3rpx rgb(32,208,113,20%)
	}
	.refer-blue{
		background: linear-gradient(to right, #00aaff 0%, #0085fe 100%);
		box-shadow: 0 3rpx 3rpx rgb(0,133,254,20%)
	}
	.refer-geenl{
		background: linear-gradient(to right,#fda393 0%, #F56C6C 100%);
		box-shadow: 0 3rpx 3rpx rgb(245, 108, 108,20%)
	}

</style>
